/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Universidad de Almeria
 * License Type: Purchased
 */
package foroindaltronia.bd;

import java.util.List;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tema_no_terminal_visibleDetachedCriteria extends AbstractORMDetachedCriteria {
	public final StringExpression nombre;
	public final DateExpression fechaCreacion;
	public final IntegerExpression ID;
	
	public Tema_no_terminal_visibleDetachedCriteria() throws PersistentException {
		super("ForoIndaltronia.BD.Tema_no_terminal_visible", foroindaltronia.bd.Tema_no_terminal_visibleCriteria.class);
		nombre = new StringExpression("nombre", this.getDetachedCriteria());
		fechaCreacion = new DateExpression("fechaCreacion", this.getDetachedCriteria());
		ID = new IntegerExpression("ID", this.getDetachedCriteria());
	}
	
	public foroindaltronia.bd.Tema_no_terminal_visibleCriteria createTema_no_terminal_visible_padreCriteria(PersistentSession session) {
		return new foroindaltronia.bd.Tema_no_terminal_visibleCriteria(super.createExecutableCriteria(session).createCriteria("tema_no_terminal_visible_padre"));
	}
	
	public foroindaltronia.bd.Tema_no_terminal_visibleCriteria createLos_subtemasCriteria(PersistentSession session) {
		return new foroindaltronia.bd.Tema_no_terminal_visibleCriteria(super.createExecutableCriteria(session).createCriteria("ORM_Los_subtemas"));
	}
	
	public foroindaltronia.bd.Tema_terminal_visibleCriteria createContiene_visiblesCriteria(PersistentSession session) {
		return new foroindaltronia.bd.Tema_terminal_visibleCriteria(super.createExecutableCriteria(session).createCriteria("ORM_Contiene_visibles"));
	}
	
	public foroindaltronia.bd.Tema_no_terminal_ocultoCriteria createContiene_ocultoCriteria(PersistentSession session) {
		return new foroindaltronia.bd.Tema_no_terminal_ocultoCriteria(super.createExecutableCriteria(session).createCriteria("ORM_Contiene_oculto"));
	}
	
	public foroindaltronia.bd.Tema_teminal_ocultoCriteria createContiene_ocultosCriteria(PersistentSession session) {
		return new foroindaltronia.bd.Tema_teminal_ocultoCriteria(super.createExecutableCriteria(session).createCriteria("ORM_Contiene_ocultos"));
	}
	
	public Tema_no_terminal_visible uniqueTema_no_terminal_visible(PersistentSession session) {
		return (Tema_no_terminal_visible) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tema_no_terminal_visible[] listTema_no_terminal_visible(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tema_no_terminal_visible[]) list.toArray(new Tema_no_terminal_visible[list.size()]);
	}
}

